<?php
namespace app\logic;



class Callback
{
    public $runner;
    public $fun;
    public $params =[];
    public function __construct($obj,$method,$params) {
        $this->runner = $obj;
        $this->fun = $method;
        $this->params = $params;
    }

    public function run(){
        call_user_func(array($this->runner, $this->fun), $this->params);
    }

}